package cn.itcast.gateway.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 虎哥
 */
@RestController
@RequestMapping("fallback")
public class FallbackController {

    @RequestMapping("handler")
    public Map<String, String> handleFallback(){
        Map<String, String> response = new HashMap<>();
        response.put("code", "502");
        response.put("msg", "服务超时!");
        return response;
    }
}
